package com.vanke.gankclient

/**
 * @name GankClient
 * @package name：com.vanke.gankclient
 * @class describe
 * @anthor shiyuchuan
 * @time 2017/8/10 17:01
 */
data class FuckGoods(
        val _id: String,
        val createAt: String,
        val desc: String,
        val images: Array<String>,
        val publishedAt: String,
        val source: String,
        val type: String,
        val url: String,
        val used: Boolean,
        val who: String
){
    fun hasImg(): Boolean = images!=null

    fun ceate() = createAt.substring(0,10)
}